<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<TITLE><?php echo $title;?></TITLE>
<link rel="stylesheet" type="text/css" media="screen" href="css/jquery-ui.css" />

<?php
if (isset($oldstyle) && $oldstyle == "1") {
?>
<link href="css/styles.css" type="text/css" media="screen" rel="stylesheet" />
<?php
} else {
?>
<link href="css/styles2.css" type="text/css" media="screen" rel="stylesheet" />
<!--[if !IE]><!-->
	<link rel="stylesheet" type="text/css" href="css/not-ie2.css" />
 <!--<![endif]-->
<?php
}
?>
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript" src="js/jquery.ui.datepicker-lt.js"></script>
<script type="text/javascript" src="js/jquery.blockUI.js"></script>
</HEAD>
<body>
<?php
$pos = strpos($_SERVER["SCRIPT_NAME"], "index.php");
if ($pos === false) {
?>
<TABLE cellspacing="0" cellpadding = "0" class="maincont">
<TR><TD valign="top" align="center" class="bgline">
<?php
} else {
?>
<TABLE cellspacing="0" cellpadding = "10" class="maincont">
<TR><TD valign="top" align="left">
<?php
}
?>